package com.trade.module.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Class Description:登录日志实体类
 *
 * @Version v1.0 2017/4/21 20:27
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "base_loginlog")
public class LoginLog extends BaseEntity implements Serializable{

    private static final long serialVersionUID = -7669505627053046112L;

    /**
     * Field description：用户名称
     */
    @Column(
            name = "user_account",
            nullable = false,
            length = 32
    )
    private String userAccount;

    /**
     * Field description：用户登陆ip
     */
    @Column(
            name = "login_ip",
            length = 32
    )
    private String loginIp;

    /**
     * Field description：登录时间
     */
    @Column(
            name = "loginin_time",
            columnDefinition="Timestamp"
    )
    private Date logininTime;

    /**
     * Field description：登出时间
     */
    @Column(
            name     = "loginout_time",
            columnDefinition="Timestamp"
    )
    private Date loginoutTime;

    /**
     * Field description：登录状态
     */
    @Column(
            name     = "login_state",
            length = 10
    )
    private String loginState;
    /**
     * Field description：登录时长
     */
    @Column(
            name = "login_time",
            length = 20
    )
    private int loginTime;

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLogininTime() {
        return logininTime;
    }

    public void setLogininTime(Date logininTime) {
        this.logininTime = logininTime;
    }

    public Date getLoginoutTime() {
        return loginoutTime;
    }

    public void setLoginoutTime(Date loginoutTime) {
        this.loginoutTime = loginoutTime;
    }

    public String getLoginState() {
        return loginState;
    }

    public void setLoginState(String loginState) {
        this.loginState = loginState;
    }

    public int getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(int loginTime) {
        this.loginTime = loginTime;
    }
}
